import React from 'react';
import './App.module.scss';
import { BrowserRouter as Router, Route, Switch, Redirect } from 'react-router-dom';
import Header from './views/header/Header';
import Search from './views/search/Search';
import LampMoney from './views/lampMoney/LampMoney';
import DeviceList from './views/deviceList/DeviceList';
import Login from './views/login/Login';
import ServiceRequest from './views/serviceRequest/ServiceRequest';

function App() {
	return (
		<div className="App" style={{ height: '100%' }}>
			<Router>
				<Switch>
					<Route path="/header" component={Header} />
					<Route path="/search" component={Search} />
					<Route path="/lamp" component={LampMoney} />
					<Route path="/device" component={DeviceList} />
					{/* <Route path="/login" component={Login} /> */}
					<Route path="/service" component={ServiceRequest} />
					<Redirect from="/" to="/header" />
				</Switch>
			</Router>
		</div>
	);
}

export default App;
